/**
 * @Author: 陈新林
 * @Date: 2020-12-28
 * @Last Modified by: chenxinlin
 * @Last Modified time: 2020-12-23 14:38
 */
import axios from '@/api/fetch';
import SERVER from '@/api/server';


// 列表查询
export const getPartOrderTypeList = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/partOrdertype`, {params})
// ID获取配件信息
export const getPartOrdertypedetilList = id => axios.get(`${SERVER.CMSCLOUD_WMS}/part/partOrdertype/partOrdertypedetil/${id}`)

// 根据配件订单销售类型ID查询配件经销商明细
export const getPartOrdertypeDealerList = id => axios.get(`${SERVER.CMSCLOUD_WMS}/part/partOrdertype/getPartOrdertypeDealerList/${id}`)
// 保存
export const dosave = (id,params) => axios.post(`${SERVER.CMSCLOUD_WMS}/part/partOrdertype/dosave/${id}`, params)

// 保存
export const dosaveDealerDetail = (id,params) => axios.post(`${SERVER.CMSCLOUD_WMS}/part/partOrdertype/dosavedealerdetail/${id}`, params)

// 修改
export const doupdate = params => axios.post(`${SERVER.CMSCLOUD_WMS}/part/partOrdertype/doupdate`, params)

// 配件常规订购日历查询分页查询
export const getpartcalendarlist = params => axios.get(`${SERVER.CMSCLOUD_WMS}/part/partOrdertype/getpartcalendarlist`, {params})

